package cc.iotkit.manager.dto.bo.order;

import cc.iotkit.common.api.BaseDto;
import cc.iotkit.model.BaseModel;
import cc.iotkit.model.product.Category;
import cc.iotkit.model.system.SysOrder;
import io.github.linpeilie.annotations.AutoMapper;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.math.BigDecimal;
import java.util.Date;

@ApiModel(value = "OrderBo")
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = SysOrder.class, reverseConvertGenerate = false)
public class OrderBo extends BaseDto  {

    @ApiModelProperty(value="订单ID")
    private Long id;

    @ApiModelProperty(value="用户ID")
    private Long userId;

    @ApiModelProperty(value="订单编号")
    private String orderNo;

    @ApiModelProperty(value="设备号")
    private String deviceNo;


    @ApiModelProperty(value="借用开始时间")
    private Date startTime;


    //private Long startStationId;

    //private String startStationName;
    @ApiModelProperty(value="借用柜机编号")
    private String startCabinetNo;

    @ApiModelProperty(value="归还时间")
    private Date endTime;
//    private Long endStationId;
//    private String endStationName;
    @ApiModelProperty(value="归还柜机编号")
    private String endCabinetNo;

    @ApiModelProperty(value="借用时长")
    private Integer duration;

    @ApiModelProperty(value="总金额")
    private BigDecimal totalAmount;

    @ApiModelProperty(value="折扣金额")
    private BigDecimal deductAmount;

    @ApiModelProperty(value="实际金额")
    private BigDecimal realAmount;

    @ApiModelProperty(value="支付时间")
    private Date payTime;

    @ApiModelProperty(value="微信支付订单号")
    private String transactionId;
    @ApiModelProperty(value="订单状态")
    private String status;

    @ApiModelProperty(value="备注")
    private String remark;
}
